﻿namespace NEnsure.Rules
{
	public class SSNRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "SSN Rule"; }
		}

		public SSNRule()
			: base(@"^(\d{3}\s*[-\.]?\s*\d{2}\s*[-\.]?\s*\d{4}\s*)?$", "{value} is not a valid social security number.")
		{

		}
	}
}
